-- GENERATED SPELL FOR [Fleshflayer Ghoul] --


function spell0_10407(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10407', 15000, 1)
end

function Sorts_10407(pUnit, Event)
local choix_sorts_10407 = math.random(0, 0)
if choix_sorts_10407 == 0 then
pUnit:RegisterEvent('spell0_10407', 1, 1)
end
end

function mob10407_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10407', math.random(1500, 3000), 1)
end

function mob10407_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10407_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10407_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10407, 1, 'mob10407_Action')
RegisterUnitEvent(10407, 2, 'mob10407_Leave')
RegisterUnitEvent(10407, 3, 'mob10407_Kill')
RegisterUnitEvent(10407, 4, 'mob10407_Die')
